package com.example.config;


import com.alibaba.druid.util.StringUtils;

/**
 * @program: 测试
 * @description:友好提示枚举
 * @author:
 * @create: 2018-10-17 08:52
 **/


public enum UnicomResponseEnums {

    SUCCESS_OPTION("20000","操作成功！"),
    SYSTEM_ERROR("-001","系统异常"),
    BAD_REQUEST("-002","错误的请求参数"),
    NOT_FOUND("-003","找不到请求路径！"),
    CONNECTION_ERROR("-004","网络连接请求失败！"),
    METHOD_NOT_ALLOWED("-005","不合法的请求方式"),
    DATABASE_ERROR("-004","数据库异常"),
    BOUND_STATEMENT_NOT_FOUNT("-006","找不到方法！"),
    REPEAT_REGISTER("001","重复注册"),
    REGISTER_ERROR("001","重复失败"),
    NO_USER_EXIST("002","用户不存在"),
    INVALID_PASSWORD("003","密码错误"),
    NO_PERMISSION("004","非法请求！"),
    NOT_MATCH("-007","用户名和密码不匹配"),
    FAIL_GETDATA("-008","获取信息失败"),
    BAD_REQUEST_TYPE("-009","错误的请求类型"),
    INVALID_MOBILE("010","无效的手机号码"),
    INVALID_EMAIL("011","无效的邮箱"),
    INVALID_GENDER("012","无效的性别"),
    REPEAT_MOBILE("014","已存在此手机号"),
    REPEAT_EMAIL("015","已存在此邮箱地址"),
    NO_RECORD("016","没有查到相关记录"),
    LOGIN_SUCCESS("20000","登陆成功"),
    LOGOUT_SUCCESS("018","已退出登录"),
    SENDEMAIL_SUCCESS("019","邮件已发送，请注意查收"),
    EDITPWD_SUCCESS("020","修改密码成功"),
    No_FileSELECT("021","未选择文件"),
    FILEUPLOAD_SUCCESS("022","上传成功"),
    NOLOGIN("023","未登陆"),
    ILLEGAL_ARGUMENT("024","参数不合法"),
    ERROR_IDCODE("025","验证码不正确"),
    ERROR_STATUS("026","状态不正确"),
    ERROR_DELFLAG("027","删除标记不正确"),
    INVALID_NAME("028","用户名不得为空"),
    INVALID_PHONE("028","手机号不得为空"),
    PASSWORD_ERROR("029","密码不符合规则"),
    INVALID_ROLE("030","角色名不得为空"),
    INVALID_ROLE_PERMISSION("031","角色权限不得为空"),
    INVALID_ROLESCOPE("032","角色数据权限范围不合法"),
    OPERATION_FAILED("033","操作失败"),
    IDS_EMPTY_ERROR("034","没有传入要删除的ID号数组"),
    ID_EMPTY_ERROR("035","没有传入要删除的ID"),
    NONEXISTENT_ID("036","要删除的记录不存在"),
    BATCH_DELETE_ERROR("037","批量删除失败"),
    INVALID_MENU("038","菜单名不得为空"),
    INVALID_PARENTMENU("039","父菜单不得为空"),
    TYPE_NOTMATCH("040","菜单类型不符"),
    INVALID_PARENTDEPTID("041","父部门不得为空"),
    ADMINISTRATOR_USER_NOT_DELETE("042","超级系统管理员不得删除"),
    ADMINISTRATOR_ROLE_NOT_DELETE("043","管理员角色不得删除"),
    ADMINISTRATOR_ROLE_NOT_UPDATE("044","管理员角色不得修改"),
    HAVE_CHILDRENDEPT_NOT_DELETE("045","该部门下有子部门，不得删除"),
    ADMIN_ROLE_NOT_UPDATE("046","管理员不得修改"),
    ROLE_DEFAULT_NON_CONFORMITY("047","角色默认属性不符"),
    SHIRO_AUTHORIZATION_EXCEPTION("048","角色权限异常，该角色没有权限执行此操作");

    private String code;
    private String msg;
    private UnicomResponseEnums(String code, String msg) {

        this.code = code;
        this.msg = msg;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

}